<% if @user.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

    <ul>
    <% @user.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
<% end %>

<%= form_tag(user_path(@user), :method => :put) do %>
  <div class="field">
    <%= label_tag :old_password, "Old Password" %><br />
    <%= password_field_tag :old_password %>
  </div>

  <div class="field">
    <%= label_tag :new_password, "New Password" %><br />
    <%= password_field_tag :new_password %>
  </div>

  <div class="field">
    <%= label_tag :new_password_confirm, "Confirm New Password" %><br />
    <%= password_field_tag :new_password_confirm %>
  </div>

  <div class="actions">
    <%= submit_tag %>
  </div>
<% end %>
